package com.enation.app.javashop.api.client;

import com.enation.app.javashop.model.promotion.fulldiscount.dos.FullDiscountDO;
import com.enation.app.javashop.service.promotion.fulldiscount.FullDiscountManager;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author zs
 * @version v2.0
 * @Description: 满送client
 * @date 2020/4/3 11:21
 * @since v7.2.0
 */
@Api(description = "满送相关API")
@RestController
@RequestMapping("/client/promotion/full-discount")
@Validated
@ApiIgnore
public class FullDiscountClientController {

    @Autowired
    private FullDiscountManager fullDiscountManager;

    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
    public FullDiscountDO getModel(@PathVariable("id") Long id) {
        return fullDiscountManager.getModel(id);
    }
}
